x86/pv: Avoid raising faults behind the emulators back
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 24 Nov 2016 18:18:36 +0000 (18:18 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Dec 2016 17:23:02 +0000 (17:23 +0000)
commita4fd87200d7ada9f67ce398b3782aef6ba54f67d
treec2ba21af38bf16f0257f7048d94693883dcddcf1
parent331d781400bee90c62ba2bb1caaed55ccba93aba
x86/pv: Avoid raising faults behind the emulators back

Use x86_emul_pagefault() rather than pv_inject_page_fault() to cause raised
pagefaults to be known to the emulator.  This requires altering the callers of
x86_emulate() to properly re-inject the event.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c